# -*- coding: utf-8 -*-
from django.db import models

class Page(models.Model):
    name = models.CharField(max_length=10)
    title = models.CharField(max_length=100)
    body = models.TextField(max_length=5000)
    
    def __unicode__(self):
        return self.name


class MenuItem(models.Model):
    name = models.CharField(max_length=10)
    title = models.CharField(max_length=100)
    page = models.ForeignKey(Page)
    
    def __unicode__(self):
        return self.name
    
    
